﻿<!-- autoriser=configurer -->
<!-- refus=<:cfg:refus_configuration_administrateur:> -->
<!-- nom=alohacart -->

<div class='formulaire_spip formulaire_configurer formulaire_configurer_#FORM' id='formulaire_configurer_#FORM'>
<h3 class='titrem'><:alohacart:plugin_config:></h3>

[<p class="reponse_formulaire reponse_formulaire_ok">(#ENV*{message_ok})</p>]
[<p class="reponse_formulaire reponse_formulaire_erreur">(#ENV*{message_erreur})</p>]

	<form method="post" action="#ENV{action}"><div>
		#ACTION_FORMULAIRE{#ENV{action}}		
        <ul>
			<li class="editer_orders_emails">
				<label for="orders_emails"><:alohacart:config_orders_emails:></label>
				<p class="explication">example1@test.com, example2@test.com</p>
				<input type="text" name="orders_emails" class="text" id="orders_emails" size="60" value="#ENV{orders_emails, ''}" />
			</li>
            <li class="editer_send_usr_email">
				<label for="send_usr_email"><:alohacart:config_send_usr_email:></label>                				
				<input type="checkbox" name="send_usr_email" class="text" id="send_usr_email" style="width: auto; float: left;" [(#ENV{send_usr_email}|?{checked})] />                
			</li>
            <li class="editer_default_order_statut">
				<label for="default_order_statut"><:alohacart:config_default_order_statut:></label>
                <p class="explication"><:alohacart:config_default_order_statut_explication:></p>
                <select name="default_order_statut">
                    <BOUCLE_statuts(ALOHACART_ORDERS_STATUTS){par num titre}>
                        <option [(#ENV{default_order_statut}|=={#ID_STATUT}|?{selected})] value="#ID_STATUT">#TITRE</option>
                    </BOUCLE_statuts>
                </select>                
			</li>
            <li class="editer_add_spinner">
				<label for="add_spinner"><:alohacart:config_add_spinner:></label>
                <p class="explication"><:alohacart:config_add_spinner_explication:></p>                				
				<input type="checkbox" name="add_spinner" class="text" id="add_spinner" style="width: auto; float: left;" [(#ENV{add_spinner}|?{checked})] />                
			</li>
            
            [(#SAISIE{case, output_composite_components, label=<:alohacart:config_output_composite_components_label:>, 
                explication=<:alohacart:config_output_composite_components_explication:>, defaut=on})]
                
            [(#SAISIE{case, output_num_in_package_column, label=<:alohacart:output_num_in_package_column_label:>, 
                explication=<:alohacart:output_num_in_package_column_explication:>, defaut=on})]    
				
			[(#SAISIE{case, allow_user_registration, label=<:alohacart:allow_user_registration_label:>, 
                explication=<:alohacart:allow_user_registration_explication:>})]
			
			[(#REM)
			[(#SAISIE{radio, cart_products_currency, label=Валюта товаров в корзине, 
                explication=В какой валюте выводить цены товаров в корзине, datas=#ARRAY{'CURRENT',Выбранная пользователем, '','Если задана, то в валюте для раздела'}})]
				]
                
            [(#SAISIE{case, config_consider_quantity, label=<:alohacart:consider_quantity_label:>,
                explication=<:alohacart:consider_quantity_explication:>})]    
                
            <fieldset style="border: 1px solid #CCC;">
                <legend><:alohacart:write_off_return:></legend>
                
                [(#SAISIE{case, automatic_write_off, label=<:alohacart:automatic_write_off_label:>,
                explication=<:alohacart:automatic_write_off_explication:>})]
                
                <li>
                    <label><:alohacart:write_off_statuses:></label>
                    <BOUCLE_orders_statuts(ALOHACART_ORDERS_STATUTS){par id_statut}>
                        <input type="checkbox" name="write_off_statuts[#ID_STATUT]" value="#ID_STATUT" 
                            [(#ENV{write_off_statuts}|table_valeur{#ID_STATUT}?{checked="checked"})] /> #TITRE
                    </BOUCLE_orders_statuts>
                </li>
                
                <li>
                    <label><:alohacart:return_statuses:></label>
                    <BOUCLE_orders_statuts2(ALOHACART_ORDERS_STATUTS){par id_statut}>
                        <input type="checkbox" name="return_statuts[#ID_STATUT]" value="#ID_STATUT" 
                            [(#ENV{return_statuts}|table_valeur{#ID_STATUT}?{checked="checked"})] /> #TITRE
                    </BOUCLE_orders_statuts2>
                </li>
            </fieldset>
            
            [(#SAISIE{case, config_user_can_change_composite_num, label=<:alohacart:config_user_can_change_composite_num_label:>,
                explication=<:alohacart:config_user_can_change_composite_num_explication:>, defaut=on})]    
		</ul>
		<p class='boutons'><input class='submit' type="submit" name="_cfg_ok" value="<:bouton_enregistrer:>" /></p>
	</div></form>

</div>
